<html>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-6707232-7']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

<script language="javascript">

function clearform()
{
 document.fee.Date.value = '';
}

</script>
<body>
<div align="center">

<h2>
Jnana Prabodhini Prashala<br/>
510, Sadashiv Peth, Pune - 30<br/>
</h2><br/>
<form name="fee" action="/fee_collection/" method="post"> {% csrf_token %}

<table>
{{ form.as_table }}
</table>
<br/><b>{{ message }}</b><br/><br/>
<input type="submit" value="Check Status"/>
<input type="button" value="Clear Form" onClick="clearform()"/>
</form>

</div>

<br/><br/>

<div align=center>
<h2>
Fee Collection for {{date}}
</h2><br/>

<table align="center" border="1" cellspacing="5" cellpadding="0">
<tr><th>Receipt No</th><th>Student</th><th>Class</th><th>Fee Type</th><th>Amount</th><th>Payment Details</th></tr>

{% for row in receipts %}
<tr><td>{{row.receipt.ReceiptNumber}}</td><td>{{row.receipt.StudentYearlyInformation.StudentBasicInfo}}</td><td>{{row.receipt.StudentYearlyInformation.ClassMaster}}</td><td>{{row.receipt.FeeType}}</td><td>{{row.receipt.Amount}}</td><td>{{row.payment}}</td></tr>

{% endfor %}
</table>
</div>
<br/><br/>
<div align="center">
<table>
<tr><td><b>Total Cash :</td><td><b> {{totalcash}}</td></tr>
<tr><td><b>Total Cheque :</td><td><b> {{totalcheque}}</td></tr>
<tr><td><b>Grand Total :</td><td><b> {{grandtotal}}</td></tr>
</table>
</div>
</body>
</html>
